using System;
using System.ComponentModel;
using System.Data;
using System.Collections.Generic;

namespace PlacementManager
{
    public partial class LinkCourseUnitComponent
    {

        /// <summary>
        /// Deletes all rows in a table based on CourseId and UnitId.
        /// </summary>
        /// <returns>Boolean</returns>
        [DataObjectMethodAttribute(DataObjectMethodType.Delete, true)]
        public bool DeleteAllWUnitIdAndCourseId(int CourseId, int UnitId)
        {
            PlacementManager.DAL.LinkCourseUnit_DAL oLinkCourseUnit_DAL = new PlacementManager.DAL.LinkCourseUnit_DAL();
            oLinkCourseUnit_DAL.UnitId = UnitId;
            oLinkCourseUnit_DAL.CourseId = CourseId;
            return oLinkCourseUnit_DAL.DeleteAllWCourseIdAndUnitId();
        }

    }
}
